<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>线下结算日志</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").attr("action", "${ctx}/sys/tbShopProduct/offlineShoppingLog");
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="#">线下结算日志</a></li>
</ul>
<form:form id="searchForm" modelAttribute="orderLog" action="${ctx}/sys/tbShopProduct/offlineShoppingLog" method="post" class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <ul class="ul-form">
        <li><label>时间范围：</label>
            <input name="startTime" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
                   value="<fmt:formatDate value="${orderLog.startTime}" pattern="yyyy-MM-dd"/>"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>--
            <input name="endTime" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
                   value="<fmt:formatDate value="${orderLog.endTime}" pattern="yyyy-MM-dd"/>"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
        </li>
        <li><label>订单号：</label>
            <input name="orderNum" value="${orderLog.orderNum}" htmlEscape="false" maxlength="50" class="input-medium"/>
        </li>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<span><font style="color: #00A6C7">${message1}</font></span>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>订单编号</th>
        <th>应付金额</th>
        <th>实付金额</th>
        <th>找零</th>
        <th>支付方式</th>
        <th>创建时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${orderLogPage.list}" var="order">
        <tr>
           <td>${order.orderNum}</td>
            <td>${order.orderSum}</td>
            <td>${order.payMoney}</td>
            <td>${order.giveMoney}</td>
            <td>${order.payName}</td>
            <td><fmt:formatDate value="${order.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
            <td><a href="${ctx}/sys/tbShopProduct/offineShoppingOrderInfo?orderId=${order.id}">查看</a></td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${orderLogPage}</div>
</body>
<script type="text/javascript" src="/static/echart/echarts.js"></script>
</html>